<template>
  <div>
    <div class="newDie " style="width:'729px'">
      <div class="newDie-in banxin2 tanxin">
        <!-- <a href="#">按钮</a> -->
        <div class="newDie-in-m">
          <ul class="tanxin">
            <li v-for="item in this.newPro" :key="item.id">
              <img width="100" :src="item.picUrl" alt="" />
              <a href="#">{{ item.name }}</a>
              <p>{{ item.artist.name }}</p>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { RecomJieMuApi } from "@/request/api";
export default {
  created() {
    RecomJieMuApi().then((res) => {
      console.log(res.data.albums);
      this.newPro = res.data.albums;
    });
  },
  data() {
    return {
      newPro: [],
    };
  },
};
</script>
 
<style lang = "less" scoped>
@import "../assets//base.less";
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}
.newDie {                                                 
  margin-top: 30px;
  .newDie-in {
    transform: translateX(-127px);
    margin: 20px auto;
    width: 729px;
    box-sizing: border-box;
    align-items: center;
    height: 184px;
    padding-left: 16px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    .newDie-in-m {
    overflow: hidden;
      width: 645px;
      ul {
        margin: 0 auto;
        width: 645px;
        height: 150px;
        align-items: center;
        text-align: center;
        transform: translateX(25px);
        li {
          padding-top: 30px;
          margin: 0 auto;
          display: inline;
          width: 118px;
          height: 150px;
          margin: 0 13.5px;
          img {
            align-items: center;
          }
          a {
            color: #000;
            cursor: pointer;
            line-height: 18px;
            font-size: 10px;
          }
          p {
            line-height: 18px;
            color: #ccc;
            font-size: 10px;
            cursor: pointer;
          }
        }
      }
    }
  }
}
</style>